﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopPoster : BaseObject
    {
        //begin
        public TopPoster(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Id;
        [Size(SizeAttribute.Unlimited)]
        public string Id
        {
            get
            {
                return _Id;
            }
            set
            {
                SetPropertyValue("Id", ref _Id, value);
            }
        }
        private DateTime _Created;
        public DateTime Created
        {
            get
            {
                return _Created;
            }
            set
            {
                SetPropertyValue("Created", ref _Created, value);
            }
        }
        private DateTime _Modified;
        public DateTime Modified
        {
            get
            {
                return _Modified;
            }
            set
            {
                SetPropertyValue("Modified", ref _Modified, value);
            }
        }
        private string _Title;
        [Size(SizeAttribute.Unlimited)]
        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                SetPropertyValue("Title", ref _Title, value);
            }
        }
        private string _ShortTitle;
        [Size(SizeAttribute.Unlimited)]
        public string ShortTitle
        {
            get
            {
                return _ShortTitle;
            }
            set
            {
                SetPropertyValue("ShortTitle", ref _ShortTitle, value);
            }
        }
        private string _Tags;
        [Size(SizeAttribute.Unlimited)]
        public string Tags
        {
            get
            {
                return _Tags;
            }
            set
            {
                SetPropertyValue("Tags", ref _Tags, value);
            }
        }
        private long _Weight;
        public long Weight
        {
            get
            {
                return _Weight;
            }
            set
            {
                SetPropertyValue("Weight", ref _Weight, value);
            }
        }
        private string _CoverUrls;
        [Size(SizeAttribute.Unlimited)]
        public string CoverUrls
        {
            get
            {
                return _CoverUrls;
            }
            set
            {
                SetPropertyValue("CoverUrls", ref _CoverUrls, value);
            }
        }
        private long _Hits;
        public long Hits
        {
            get
            {
                return _Hits;
            }
            set
            {
                SetPropertyValue("Hits", ref _Hits, value);
            }
        }
        private string _ChannelId;
        [Size(SizeAttribute.Unlimited)]
        public string ChannelId
        {
            get
            {
                return _ChannelId;
            }
            set
            {
                SetPropertyValue("ChannelId", ref _ChannelId, value);
            }
        }
        //end
    }
}
